//C12:12.3:loc_stat.c -- a local static variant.
#include <stdio.h>
void trystat(void);

int main(void)
{
	int count;
	for (count = 1; count <= 3; count++)
	{
		printf("Here comes iteration %d: \n", count);
		trystat();
	}
}

void trystat(void)
{
	int fade = 1;
	static int stay = 1;
	printf("fade = %d and stay = %d\n", fade++, stay++);
}
